package com.h3c.ptability.mapstruct;

import com.h3c.ptability.dto.PtDeptDTO;
import com.h3c.ptability.entity.PtUserDept;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/8/18 13:59
 */
@Mapper
public interface PtUserDeptMapstruct {

    PtUserDeptMapstruct INSTANCE = Mappers.getMapper(PtUserDeptMapstruct.class);

    /**
     * dto中的字段同步到实体类中
     * @param deptDTOS
     * @return
     */
    List<PtUserDept> dtoToEntity(List<PtDeptDTO> deptDTOS);

}
